<?php
/**
 * @Name: StaffRelationTableUserRequest.php
 * @Author: yashuai
 * @Desc 员工关联用户表中的用户
 */

namespace App\Http\Requests\Org;

use App\Http\Requests\PackingRequest;

class StaffRelationTableUserRequest extends PackingRequest
{

    public function rules()
    {
        return [
            'StaffID' => 'required|integer',
            'UserID'  => 'required|integer',
        ];
    }

    public function messages()
    {
        return [
            'StaffID.required' => '缺少员工ID参数',
            'StaffID.integer'  => '员工ID参数类型异常',
            'UserID.required'  => '缺少账户ID参数',
            'UserID.integer'   => '账户ID参数类型异常',
        ];
    }

}
